package me.liuhui.mall.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.liuhui.mall.repository.model.Order;
import me.liuhui.mall.repository.model.dao.DateCount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liuhui
 * @since 2023-04-06
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    Order selectByNo(String v);

    Double sumAmount(Integer status);

    List<DateCount> countOrder(@Param("minCreateTime") Date minCreateTime, @Param("maxCreateTime") Date maxCreateTime);

}
